package com.squid.dataCenter.convertor;


import com.squid.base.common.convertor.BaseConverter;
import com.squid.dataCenter.model.entity.DataDictionaryEntity;
import com.squid.dataCenter.model.req.datadictionary.DataDictionaryInsertReq;
import com.squid.dataCenter.model.req.datadictionary.DataDictionaryUpdateReq;
import com.squid.dataCenter.model.resp.datadictionary.DataDictionaryPageResp;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * Description
 *
 * @author jinhang
 * @since 2024-2-7
 **/
@Mapper
public interface DataDictionaryEntityConvertor extends BaseConverter<DataDictionaryEntity, DataDictionaryPageResp> {
    DataDictionaryEntityConvertor INSTANCE = Mappers.getMapper(DataDictionaryEntityConvertor.class);

    DataDictionaryEntity insertTo(DataDictionaryInsertReq req);

    DataDictionaryEntity updateTo(DataDictionaryUpdateReq req);
}
